package cn.dlc.com.base;

/**
 * @author 邓立川
 * @date 2021/3/12 6:59
 * @desc 事后分析估算方法
 */
public class Demo1 {

    public static void main(String[] args) {

        int sum = 0;

        long start = System.currentTimeMillis();

        for (int i = 0; i < 100; i++) {
            sum +=i;
        }

        long end = System.currentTimeMillis();
        System.out.println("花费时间： " + (end -start));
    }
}
